﻿@{
    ViewBag.Title = "Import";
}

<h2>ViewBag.Title</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("DoImport", "Subject", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Subject</legend>

        <div class="editor-label">
            @Html.Label("subjectFile", "XML file")
        </div>
        <div class="editor-field">
            <input type="file" id="subjectFile" name="subjectFile" />
        </div>

        <p>
            <input type="submit" value="Import" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
